<html>  
<head>
	<Meta http-equiv="Content-Type" Content="text/html; Charset=UTF-8">
	<Meta http-equiv="Content-Language" Content="zh-CN">

	<?php
		foreach($meta_info as $item)
			echo "<META NAME=\"${item['name']}\" CONTENT=\"${item['content']}\" >"; 
	?>

	<title><?php echo $title; ?></title> 

	<!-- mobile viewport optimisation -->
	<meta name="viewport" content="width=device-width, initial-scale=1.0">

	<!-- stylesheets -->
	<?php
		foreach($css_info as $item)
			echo "<link rel=\"stylesheet\" href=\"${item}\" type=\"text/css\" />";
		echo '<link rel = "Shortcut Icon" href="pages/img/favicon.ico" >';
	?>

</head>  
<body>
	<header>
		<?php echo $header_content; ?>
	</header>

	<div id="nav">
		<?php echo $nav_content; ?>
	</div>

	<div id="ad-top">
		<?php echo $ad_top_content; ?>
	</div>
	<div class="clear"></div>

	<div id="main">
		<?php echo $main_content; ?>
	</div>
 
	<footer>
		<?php echo $footer_content; ?>
	</footer>
	<?php
		foreach($js_info as $item)
			echo "<script type=\"text/javascript\" src=\"${item}\"></script>";
	?>
</body> 
</html>
